# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python

class Recipe(recipe.Recipe):
    name = 'libcroco'
    version = '0.6.12'
    licenses = [License.LGPLv2_1Plus]
    stype = SourceType.TARBALL
    url = 'gnome://'
    tarball_checksum = 'ddc4b5546c9fb4280a5017e2707fbd4839034ed1aba5b7d4372212f34f84f860'
    deps = ['libxml2', 'glib', 'gdk-pixbuf']

    files_libs = ['libcroco-0.6']
    files_bins = ['csslint-0.6']
    files_devel = ['include/libcroco-0.6/libcroco',
                   'lib/pkgconfig/libcroco-0.6.pc']

    def prepare(self):
        if self.config.target_platform in [Platform.DARWIN, Platform.IOS]:
            self.configure_options += ' --disable-Bsymbolic'
